<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
<xsl:output
	method="xml"
	omit-xml-declaration = "yes"/>
	
<xsl:template match="comments">
<xsl:apply-templates select="comment"/>
</xsl:template>

<xsl:template match="comment">
<div class="comment">
	<span class="author"><a href="#">author</a></span><xsl:text> </xsl:text>
	<span class="date"><xsl:value-of select="@time"/></span><xsl:text> </xsl:text>
	<a href="#">ответить</a><xsl:text> </xsl:text>
	<a href="#">permalink</a>
	
<xsl:apply-templates select="comments"></xsl:apply-templates></div>
</xsl:template>

</xsl:stylesheet>